<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Opinion extends Model
{

    protected $table = 'opinion';

    public $timestamps = false;

    protected $primaryKey = 'opinionID';

    protected $fillable = [
        'opinionID',
        'userID',
        'msg',
        'contacts',
        'status',
        'time',
        'id',
        'dealtime',
        'img',
        'describe',
        'reply',
        'closed',
        'img_oss',
    ];

    public function user()
    {
        return $this->hasOne('App\\Models\\User', 'userID', 'userID');
    }
}
